{empty name="data"}
<p style="margin:2rem 0; text-align:center;">暂无订单！！</p>
{else /}
{volist name="data" id="vo"}
<ul class="js-list" dataOrder="{$i}">
    <li class="mt10">
        <div class="weui-form-preview">
            <div class="msui_table msui_tableCom">
                {notempty name="vo.repair_name"}
                <div class="msui_tabCell-img msui_tableImg-circle">
                    {empty name="vo.logo"}
                    <img src="/static/wechat/images/1.jpg">
                    {else /}
                    <img src="{$vo.logo|get_img_url}">
                    {/empty}
                </div>
                {/notempty}
                <div class="msui_tabCell-content action">
                    {switch  name="vo.status"}
                        {case value="1"}
                            <p class="fs085 cl-3333">等待接单中</p>
                        {/case}
                        {case value="9"}
                            <p class="fs085 cl-3333">已取消</p>
                        {/case}
                        {default /}
                            <p class="fs085 cl-3333">{$vo.repair_name}</p>
                            <p class="fs07 cl-9999">{$vo.order_receiving_time|date="Y-m-d H:i", ###}</p>
                    {/switch}
                </div>
                <div class="msui_tabCell-button status">
                    {eq name="vo.after_sale_status" value="0"}
                        <span class="cl-orange fs08">{$vo.status|get_order_server_status}</span>
                    {else /}
                        <span class="cl-orange fs08">{$vo.after_sale_status|get_order_server_after_sale_status}</span>
                    {/eq}
                    </div>
                </div>
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label fs085 cl-6666">[{$vo.item_name}] {$vo.msg}</label>
                </div>
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label fs08 cl-9999">{$vo.address}</label>
                    <!--{$vo.province}{$vo.city}{$vo.area}{$vo.street}-->
                    <!--如果售后状态不为0 标识有售后 增加售后详情页面跳转-->
                    {gt name="vo.after_sale_status" value="0"}
                        <a class="weui-form-preview__button cl-orange" href="javascript:;">
                            退款
                        </a>
                    {/gt}
                </div>
                <div class="weui-form-preview__ft">
                    <a class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange" href="{:url('orders/order_info', [ 'id' => $vo['id']])}">
                        查看订单
                    </a>
                    {eq name="vo.after_sale_status" value="0"}
                        {eq name="vo.status" value="1"}
                        <!--// 待付款状态  增加付款按钮-->
                            <a href="javascript:;" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange cancel_order order_list" data-order-id="{$vo.id}" data-model="order_server">
                                取消订单
                            </a>
                        {/eq}
                        {eq name="vo.status" value="11"}
                            <!--// 议价中状态  增加延长议价时间和重新推送按钮-->
                            <a href="javascript:;" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange order_push_again" data-order-id="{$vo.id}" data-model="order_server">
                                取消订单
                            </a>
                        {/eq}
                        {eq name="vo.status" value="2"}
                        <!--// 待付款状态  增加付款按钮-->
                            <a href="/wechat/pay/order_pay/?id={$vo.id}&model=order_server" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">
                                去付款
                            </a>
                        {/eq}
                        {in name="vo.status" value="3, 4"}
                        <!--// 已支付状态  增加确认按钮-->
                            {eq name='vo.after_sale_status' value="0"}
                            <button type="button" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange affirm_finish order_list" data-order-id="{$vo.id}" data-model="order_server">确认完成</button>
                            {else /}
                            <button type="button" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">退款中</button>
                            {/eq}
                        {/in}
                        {eq name="vo.status" value="6"}
                        <!--// 完成状态  增加评价按钮-->
                            {eq name="vo.is_comment" value="1"}
                            <a href="javascript:;" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">已评价</a>
                            {else /}
                            <a href="{:url('w_comment/index', ['order_id' => $vo['id'], 'type' => '2'])}" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">待评价</a>
                            {/eq}

                            {eq name='vo.after_sale_status' value="1"}
                                <a href="javascript:;">售后中</a>
                            {/eq}
                        {/eq}
                    {else /}
                        <!--// 有售后产生  显示售后状态-->
                        <!--<a href="{:url('austin/order_server_info', ['id' => $vo['oa_id']])}" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">查看售后</a>-->
                    {/eq}
                </div>
            </div>
        </div>
    </li>
</ul>
{/volist}
{/empty}